#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import testquestion_blueprint
from api.testQuestionResource.testQuestionResource import TestQuestionResource
from api.testQuestionResource.testQuestionOtherResource import TestQuestionOtherResource

api = Api(testquestion_blueprint)

api.add_resource(TestQuestionResource, '/testQuestion/<question_id>', '/testQuestion', endpoint='TestQuestion')


@testquestion_blueprint.route('/testquestion/update/<question_id>', methods=['PUT'], endpoint='TestQuestionUpdate')
def update(question_id):
    return TestQuestionOtherResource.sensitive_update(question_id)
